home *** CD-ROM | disk | FTP | other *** search
/ The Trig Explorer / The Trig Explorer.iso / pc / explorer / function.dxr / 00139.ls < prev    next >
Encoding:
Text File  |  1997-07-22  |  1020 b   |  31 lines

  1. property position
  2.  
  3. on mouseDown me
  4.   set the cursor of sprite the spriteNum of me to [member "Closed hand", member "Closed Hand Mask"]
  5.   repeat while the stillDown
  6.     set the castNum of sprite the clickOn to cast "hypotenuse"
  7.     set the locH of sprite the clickOn to the mouseH
  8.     set the locV of sprite the clickOn to the mouseV
  9.     updateStage()
  10.   end repeat
  11.   if sprite the clickOn within 4 then
  12.     set the castNum of sprite 11 to cast "hypotenuse"
  13.   end if
  14.   if sprite the clickOn within 3 then
  15.     set the castNum of sprite 12 to cast "hypotenuse"
  16.   end if
  17.   doFunction()
  18.   set the cursor of sprite the spriteNum of me to [member "hand", member "Hand Mask"]
  19.   set the loc of sprite the spriteNum of me to position
  20.   set the member of sprite the clickOn to member "hp1"
  21. end
  22.  
  23. on beginSprite me
  24.   set the cursor of sprite the spriteNum of me to [member "hand", member "Hand Mask"]
  25.   set position to the loc of sprite the spriteNum of me
  26. end
  27.  
  28. on endSprite me
  29.   set the cursor of sprite the spriteNum of me to 0
  30. end
  31.